package com.myCommunity.biz.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myCommunity.biz.TopicBiz;
import com.myCommunity.dao.TopicDao;
import com.myCommunity.dao.impl.TopicDaoImpl;
import com.myCommunity.entity.Topic;
@Service("topicBiz")
public class TopicBizImpl implements TopicBiz {
	@Autowired
	private TopicDao topicDao;
	public List<Topic> getAll() {
		return topicDao.getAll();
	}
	public List<Topic> getIsBestQuery(int forumId) {
		// TODO Auto-generated method stub
		return topicDao.getIsBestQuery(forumId);
	}
	public List<Topic> getTitlePage(int forumId, String title, int pageNo) {
		// TODO Auto-generated method stub
		return topicDao.getTitlePage(forumId, title, pageNo);
	}
	public List<Topic> getById(int id,int userId) {
		// TODO Auto-generated method stub
		return topicDao.getById(id,userId);
	}
	public void addSubject(Topic topic) {
		// TODO Auto-generated method stub
		 topicDao.addSubject(topic);
	}
}
